package com.ssy.lingxi.platform.manage.service.content;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.entity.content.ContentImage;
import com.ssy.lingxi.platform.manage.model.request.common.CommonIdRequest;
import com.ssy.lingxi.platform.manage.model.request.common.CommonStatusRequest;
import com.ssy.lingxi.platform.manage.model.request.content.ContentImagePageRequest;
import com.ssy.lingxi.platform.manage.model.request.content.ContentImageRequest;
import com.ssy.lingxi.platform.manage.model.response.StartAndGuideResponse;

import java.util.List;

/**
 * 图片管理 - 业务处理层
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
public interface IContentImageService {

    Wrapper<PageData<ContentImage>> page(ContentImagePageRequest request);

    Wrapper<ContentImage> get(CommonIdRequest request);

    Wrapper<Void> add(ContentImageRequest request, UserLoginCacheDTO user);

    Wrapper<Void> update(ContentImageRequest request, UserLoginCacheDTO user);

    Wrapper<Void> updateStatus(CommonStatusRequest request, UserLoginCacheDTO user);

    Wrapper<Void> delete(CommonIdRequest request, UserLoginCacheDTO user);

    Wrapper<List<ContentImage>> findAllByUseSceneAndPosition(Integer useScene, Integer position);

    Wrapper<StartAndGuideResponse> startAndGuide();
}
